Chapter 8 - SYSTEM COMMANDS

System Commands

In addition to those commands listed in the generic ABI and the Processor Specific ABI, the following commands are available to application programs running on ABI-conforming systems: With the exception of the -D option to cpio, and mt, mount and umount, these commands are as described in the System V Interface Definition, Third Edition (SVID 3).

The -D option to cpio

The cpio command must support the -D option. -D is used by the SVR4 packaging tools, and has been found to be necessary for installation of third party software which resides on multi-file tapes. -D disables tape read ahead and automatic volume switching.

The mt Command

The mt command is a magnetic tape manipulation program, with the following syntax:
mt -f tapename  command  [ count ]
mt is used to give commands to a magnetic tape drive. Note that tapename must reference a raw (not block) tape device. By default, mt performs the requested operation once. Operations may be performed multiple times by specifying count.

Valid choices for command are as follows:

mt returns a 0 exit status upon successful completion, 1 if the command was unrecognized, and 2 if an operation failed.

Differences are known to exist among various vendor platforms as to exactly where a tape is positioned after reading a file on a multi-file tape. These are difficult to reconcile due to compatibility requirements with prior OS releases by each vendor. Applications that use multi-file tapes, especially using them for installation should consider using dd to actually extract the information, and the undocumented "-D" option for cpio (discussed above) which inhibits read ahead. This is the mechanism used by the SVR4 packaging tools. Vendors have generally made dd properly position the tape in a consistent way.



The mount and umount Commands

The mount and unmount commands specify how to mount and unmount file systems. The specification below extends the definition in the SVID 3 to support the mounting and unmounting of CD-ROM based file systems. This definition is derived from the OCMP and SVR4.2 specifications.

If FSType is cdfs, the special argument must be /dev/abi/cd_iso. Note that FSType and/or special can in some circumstances be determined from /etc/vfstab.

The cdfs-specific options to mount include:

Go to Next Chapter (Chapter 9)
Go back to the Overview
Back to the Table of Contents
Back to the MIPS ABI Home Page


Maintained by webmaster@mipsabi.org
last modified on November 21, 1995

Copyright © 1995, MIPS ABI Group, Incorporated.